package demo05extends;

import demo04ArrayListLinkedList.Test;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 09 - 23
 * Time:18:43
 */
//子类在进行构造的时候会首先帮助父类进行构造；
class Base{
    Base(){
        System.out.println("Base");
    }
}
public class Alpha extends Base {
    public static void main(String[] args) {
        new Alpha();
        //调用父类无参的构造方法
        new Base();
    }
}
